package com.bonc.situation.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/** 
* @Author guxf
* @Time 2020年12月25日 下午8:23:44 
* @Version 1.0
* <p>Description:</p>
*/
@Configuration
public class RestConfig {
	@Autowired
	private RestTemplateBuilder builder;
	@Bean
	public RestTemplate restTemplate(){
		return builder.build();
	}
}
